CC = gcc
CFLAGS = -g -Wall -lpthread
HEADERS = client.h
LIBRARY = libclient.a
SRCS = client.c client_main.c
OBJS = $(SRCS:.c=.o)

$(LIBRARY): $(OBJS)
    ar rcs $(LIBRARY) $(OBJS)

client: $(LIBRARY) client_main.c
    $(CC) $(CFLAGS) -o client client_main.c $(LIBRARY)

clean:
    rm -f $(OBJS) $(LIBRARY) client